import server from './http.js' //导入axios

// 商品页 的接口
/**
 * @ 全部商品
 */
const AllHeader = () => {
    let data = server.post('/product/getCategory')
    return data
}
/**
 * 全部商品里面分页
 */
const GoodsAll = (model) => {
    let data = server.post('/product/getAllProduct', model)
    return data
}
/**
 * 点击菜单接口
 */
const getProductByCategory = (model) => {
    let data = server.post('/product/getProductByCategory', model)
    return data
}

export { GoodsAll, AllHeader, getProductByCategory }
